﻿#ifndef BLINKBORDERWINDOW_H
#define BLINKBORDERWINDOW_H

#include <QWidget>
#include <QTimer>
#include <QColor>
#include <QPaintEvent>
#include <QList>

class BlinkBorderWindow : public QWidget
{
    Q_OBJECT
public:
    explicit BlinkBorderWindow(const QRect &rect, QWidget *parent = nullptr, QColor color=Qt::red);

private slots:
    void toggleBlink();
    void paintEvent(QPaintEvent*) override;

private:
    QTimer m_blinkTimer;
    QColor m_borderColor;
    bool m_visibleBorder = true;
};

#endif // BLINKBORDERWINDOW_H
